﻿<%@ Page Title="Register" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Register.aspx.cs" Inherits="WebApplication.Account.Register" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <asp:CreateUserWizard ID="RegisterUser" runat="server" EnableViewState="false">
        <LayoutTemplate>
            <asp:PlaceHolder ID="wizardStepPlaceholder" runat="server"></asp:PlaceHolder>
            <asp:PlaceHolder ID="navigationPlaceholder" runat="server"></asp:PlaceHolder>
        </LayoutTemplate>
        <WizardSteps>
            <asp:CreateUserWizardStep ID="RegisterUserWizardStep" runat="server">
                <ContentTemplate>
                    <h2>
                        Registreren
                    </h2>
                    <p>
                        Gebruik het onderstaande formulier om een nieuw account aan te maken.
                    </p>
                    <p>
                        Wachtwoorden moeten minimaal
                        <%= Membership.MinRequiredPasswordLength %>
                        tekens lang zijn.
                    </p>
                    <span class="failureNotification">
                        <asp:Literal ID="ErrorMessage" runat="server"></asp:Literal>
                    </span>
                    <asp:ValidationSummary ID="RegisterUserValidationSummary" runat="server" CssClass="failureNotification"
                        ValidationGroup="RegisterUserValidationGroup" />
                    <div class="accountInfo">
                        <fieldset class="register">
                            <legend>Account Informatie</legend>
                            <p>
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">RFID:</asp:Label>
                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    CssClass="failureNotification" ErrorMessage="RFID is niet correct." ToolTip="RFID is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
                                <asp:TextBox ID="Email" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email"
                                    CssClass="failureNotification" ErrorMessage="E-mail is niet correct." ToolTip="E-mail is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:TextBox Visible="false" ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                
                            </p>
                            <p>
                                <asp:TextBox Visible="false" ID="ConfirmPassword" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                
                            </p>
                            <p>
                                <asp:Label ID="NaamLabel" runat="server" AssociatedControlID="Naam">Naam:</asp:Label>
                                <asp:TextBox ID="Naam" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="NaamRequired" runat="server" ControlToValidate="Naam"
                                    CssClass="failureNotification" ErrorMessage="Naam is niet correct." ToolTip="Naam is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>                            
                            
                            <p>
                                <asp:Label ID="AddressLabel" runat="server" AssociatedControlID="Address">Adres:</asp:Label>
                                <asp:TextBox ID="Address" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="Address"
                                    CssClass="failureNotification" ErrorMessage="Adres is niet correct." ToolTip="Adres is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="PostcodeLabel" runat="server" AssociatedControlID="Postcode">Postcode:</asp:Label>
                                <asp:TextBox ID="Postcode" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PostcodeRequired" runat="server" ControlToValidate="Postcode"
                                    CssClass="failureNotification" ErrorMessage="Postcode is niet correct." ToolTip="Postcode is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="WoonplaatsLabel" runat="server" AssociatedControlID="Woonplaats">Woonplaats:</asp:Label>
                                <asp:TextBox ID="Woonplaats" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="WoonplaatsRequired" runat="server" ControlToValidate="Woonplaats"
                                    CssClass="failureNotification" ErrorMessage="Woonplaats is niet correct." ToolTip="Woonplaats is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="TelefoonnummerLabel" runat="server" AssociatedControlID="Telefoonnummer">Telefoonnummer:</asp:Label>
                                <asp:TextBox ID="Telefoonnummer" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="TelefoonnummerRequired" runat="server" ControlToValidate="Telefoonnummer"
                                    CssClass="failureNotification" ErrorMessage="Telefoonnummer is niet correct."
                                    ToolTip="Telefoonnummer is niet correct." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="SofinummerLabel" runat="server" AssociatedControlID="Sofinummer">Sofinummer:</asp:Label>
                                <asp:TextBox ID="Sofinummer" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="SofinummerRequired" runat="server" ControlToValidate="Sofinummer"
                                    CssClass="failureNotification" ErrorMessage="Sofinummer is niet correct." ToolTip="Sofinummer is niet correct."
                                    ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                            <p>
                                <asp:Label ID="RekeningnummerLabel" runat="server" AssociatedControlID="Rekeningnummer">Rekeningnummer:</asp:Label>
                                <asp:TextBox ID="Rekeningnummer" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="Rekeningnummer"
                                    CssClass="failureNotification" ErrorMessage="Rekeningnummer is niet correct."
                                    ToolTip="Rekeningnummer is niet correct." ValidationGroup="RegisterUserValidationGroup">*</asp:RequiredFieldValidator>
                            </p>
                        </fieldset>
                        <p class="submitButton">
                            <asp:Button ID="CreateUserButton" runat="server" OnClick="RegisterButtonClick" Text="Maak aan"
                                ValidationGroup="RegisterUserValidationGroup"/>
                        </p>
                    </div>
                </ContentTemplate>
                <CustomNavigationTemplate>
                </CustomNavigationTemplate>
            </asp:CreateUserWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
</asp:Content>
